/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paws.gui;

/**
 * Class used for state of cursor when the buttons are clicked
 * @author Greg
 */


public class CursorMode {

    //The different cursor states when buttons are pressed
    public enum mode{Select, Uniform, NonUniform, End, Single} ;
    private mode currentMode ;

    //constructors
    public CursorMode()
    {
        currentMode = mode.Single ;
    }

    public CursorMode(mode state)
    {
        currentMode = state ;
    }
    public void setState(mode newMode)
    {
        currentMode = newMode ;
    }

    public mode getState()
    {
        return currentMode ;
    }

    public boolean isSingle()
    {
        return (currentMode == mode.Single) ;
    }

    public boolean isSelect()
    {
        return (currentMode == mode.Select) ;
    }

    public boolean isUniform()
    {
        return (currentMode == mode.Uniform) ;
    }

    public boolean isNonUniform()
    {
        return (currentMode == mode.NonUniform) ;
    }

    public boolean isEnd()
    {
        return (currentMode == mode.End) ;
    }
}
